class People():
    def __init__(self, name, sex):
        self.name = name
        self.sex = sex
    
    def Work(self, courseName):
        print("正在进行活动")

class Student(People):
    def Work(self, courseName):
        print(f"{self.name}正在学习{courseName}课程")

class Teacher(People):
    def Work(self, courseName):
        print(f"{self.name}正在教授{courseName}课程")


tea = Teacher("李强", "男")
tea.Work("python")

stu = Student("王芳", "女")
stu.Work("python")
